﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="GoodItems.ascx.cs" Inherits="Controls_Activity_GoodItems" %>
 <%@ Register Src="GoodItemSelect.ascx" TagName="GoodItemSelect" TagPrefix="uc1" %>
 <div class="webPanelBorder" > 
    <div class="webPanelCaption">具体物料项</div>
    <div class="webPanelContent">
      <ofcc:GridView ID="gridViewItems" runat="server" AutoGenerateColumns="False" 
        OnRowDataBound="gridViewItems_RowDataBound" onrowdeleting="gridViewItems_RowDeleting" 
        >
            <Columns>
                <asp:HyperLinkField DataTextField="GoodsCode" HeaderText="物料编号" NavigateUrl="#" Target="_blank" />
                <asp:BoundField DataField="Subject" HeaderText="物料名称" />
                <asp:BoundField DataField="CategoryName" HeaderText="物料类型" />
                <asp:BoundField DataField="GoodsMaker" HeaderText="品牌厂商" />
                <asp:BoundField DataField="TypeModel" HeaderText="规格型号" />
                <asp:BoundField DataField="GoodsUnit" HeaderText="单位" />
                <asp:TemplateField HeaderText="数量">
                    <ItemTemplate>
                        <asp:HiddenField ID ="GoodsID" runat="server" Value='<%#Eval("GoodsID") %>' />
                        <asp:TextBox ID="GoodsCount" runat="server" CssClass="smallInput" Width="80" value='<%#DataBinder.Eval(Container.DataItem,"GoodsCount")%>' name="GoodsCount" type="text" ></asp:TextBox> 
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="单价">
                    <ItemTemplate>
                        <asp:TextBox ID="StandardCost" runat="server" CssClass="smallInput" Width="80" value='<%#DataBinder.Eval(Container.DataItem,"StandardCost")%>' name="StandardCost" type="text" ></asp:TextBox> 
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="CountCost" HeaderText="金额" />
                <asp:TemplateField HeaderText="备注">
                    <ItemTemplate>
                        <asp:TextBox ID="Description" runat="server" CssClass="smallInput" Width="100" value='<%#DataBinder.Eval(Container.DataItem,"Description")%>' name="Description" type="text" ></asp:TextBox> 
                    </ItemTemplate> 
                </asp:TemplateField>
                <asp:TemplateField HeaderText="损耗数量">
                    <ItemTemplate> 
                        <asp:TextBox ID="BadCount" runat="server" CssClass="smallInput" Width="80" value='<%#DataBinder.Eval(Container.DataItem,"BadCount")%>' name="BadCount" type="text" ></asp:TextBox> 
                    </ItemTemplate>
                </asp:TemplateField> 
                <asp:BoundField DataField="OutCount" HeaderText="出库数量" /> 
                <asp:BoundField DataField="ActiveCount" HeaderText="可用数量" /> 
            <asp:CommandField ShowDeleteButton="true" DeleteText="删除" />
            </Columns>
        </ofcc:GridView>
    </div>     
</div> 
     <uc1:GoodItemSelect ID="GoodItemSelect" runat="server" /> 
     <asp:HiddenField ID="hfCountHeaderText" runat="server" Value="数量" />